Systems and methods for reducing connection latency

ABSTRACT

Systems and methods for reducing connection latency are described herein. More particularly, this specification relates to shortening connection latency between devices operating according to a Bluetooth protocol. Connection latency can be reduced by using the receipt of a wireless packet as a trigger for selectively accelerating a transmission rate of advertising packets. By selectively accelerating the transmission rate advertising packets, a connection interval between two devices can be shortened.

RELATED APPLICATION

This application claims the benefit of U.S. Provisional Application No.62/095,628, filed Dec. 22, 2014, the disclosure of which is incorporatedby reference herein in its entirety.

TECHNICAL FIELD

This patent specification relates to systems and methods for reducingconnection latency. More particularly, this specification relates toshortening connection latency between devices operating according to aBluetooth protocol.

BACKGROUND

This section is intended to introduce the reader to various aspects ofart that may be related to various aspects of the present techniques,which are described and/or claimed below. This discussion is believed tobe helpful in providing the reader with background information tofacilitate a better understanding of the various aspects of the presentdisclosure. Accordingly, it should be understood that these statementsare to be read in this light, and not as admissions of prior art.

Bluetooth Low Energy (BLE) is a wireless radio technology, aimed at new,principally low-power and low-latency applications for wireless deviceswithin a short range (up to about 160 feet). BLE networks areparticularly well-suited for a wide range of applications and smallerform factor devices in the healthcare, fitness, security and homeentertainment industries. As its name implies, BLE is intended for suchenergy-constrained applications as a sensor or a disposable device,particularly those that transmit relatively little data and do soinfrequently. BLE was designed to enable wireless connectivity withsmall devices running for extended periods of time on, for example, acoin cell battery. While an objective of networks that utilize BLEtechnologies is robust and secure delivery of information, savingbattery power is also a concern.

SUMMARY

A summary of certain embodiments disclosed herein is set forth below. Itshould be understood that these aspects are presented merely to providethe reader with a brief summary of these certain embodiments and thatthese aspects are not intended to limit the scope of this disclosure.Indeed, this disclosure may encompass a variety of aspects that may notbe set forth below.

Systems and methods for reducing connection latency are describedherein. More particularly, this specification relates to shorteningconnection latency between devices operating according to a Bluetoothprotocol. Connection latency can be reduced by using the receipt of awireless packet as a trigger for selectively accelerating a transmissionrate of advertising packets. By selectively accelerating thetransmission rate advertising packets, a connection interval between twodevices can be shortened. For example, in one embodiment, a method isprovided for operating a device according to a first advertising modethat transmits adverting packets according to a first frequency. Themethod further includes receiving a scan request packet in response tothe transmission of one of the adverting packets, and operating thedevice according to a second advertising mode in response to thereceived scan request packet, wherein in the second advertising mode theadverting packets are transmitted according to a second frequency thatis greater than the first frequency.

In another embodiment, an apparatus is provide the includes a wirelesstransceiver and control circuitry coupled to the wireless transceiverand operative to cause the wireless transceiver to send and receivewireless packets. The control circuitry can be operative to transmitadvertising packets at an advertising frequency having a first period,monitor for receipt of a scan request packet within a listening window,determine if a scan request packet is monitored, adjust the advertisingfrequency to have a second period in response to a determination that ascan request packet is monitored, wherein the second period is less thanthe first period, and transmit at least one subsequent advertisingpacket at the advertising frequency having the second period.

In yet another embodiment, a method for establishing low latencyconnection between central and peripheral devices is provided. Themethod can be implemented by the peripheral device and can includewirelessly transmitting advertising packets to alert the presence of theperipheral device to the central device, and adjusting an advertisingrate for transmitting the advertising packets based on whether a scanrequest packet is received in response to a transmitted advertisementpackage, wherein the advertising rate is temporarily accelerated inresponse to a received scan request packet to reduce latency inestablishing a connection between the central and peripheral devices.

Various refinements of the features noted above may be used in relationto various aspects of the present disclosure. Further features may alsobe incorporated in these various aspects as well. These refinements andadditional features may be used individually or in any combination. Forinstance, various features discussed below in relation to one or more ofthe illustrated embodiments may be incorporated into any of theabove-described aspects of the present disclosure alone or in anycombination. The brief summary presented above is intended only tofamiliarize the reader with certain aspects and contexts of embodimentsof the present disclosure without limitation to the claimed subjectmatter.

A further understanding of the nature and advantages of the embodimentsdiscussed herein may be realized by reference to the remaining portionsof the specification and the drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows two wireless devices, according to an embodiment;

FIG. 2 illustrates a block diagram of a peripheral device, according toan embodiment;

FIG. 3 shows an illustrative timing diagram of wireless communicationsbetween central and peripheral devices, where the central is passivelylistening;

FIG. 4 shows an illustrative timing diagram of wireless communicationsbetween central and peripheral devices, where the central is activelylistening;

FIG. 5 shows an illustrative flowchart of a process that may beimplemented by a peripheral device according to an embodiment;

FIG. 6 shows an illustrative timing diagram of wireless communicationsbetween central and peripheral devices, performed according to theprocess of FIG. 5, according to an embodiment; and

FIG. 7 shows illustrative additional steps may be performed by theprocess of FIG. 5, according to an embodiment;

DETAILED DESCRIPTION OF THE DISCLOSURE

In the following detailed description, for purposes of explanation,numerous specific details are set forth to provide a thoroughunderstanding of the various embodiments. Those of ordinary skill in theart will realize that these various embodiments are illustrative onlyand are not intended to be limiting in any way. Other embodiments willreadily suggest themselves to such skilled persons having the benefit ofthis disclosure.

In addition, for clarity purposes, not all of the routine features ofthe embodiments described herein are shown or described. One of ordinaryskill in the art would readily appreciate that in the development of anysuch actual embodiment, numerous embodiment-specific decisions may berequired to achieve specific design objectives. These design objectiveswill vary from one embodiment to another and from one developer toanother. Moreover, it will be appreciated that such a development effortmight be complex and time-consuming but would nevertheless be a routineengineering undertaking for those of ordinary skill in the art havingthe benefit of this disclosure.

In some wireless networks, wireless devices set up connections with eachother to facilitate data transfer. This disclosure focuses on BLEnetworks, but the scope of the disclosure and the claims applies toother network types as well. The problem with the connection setupprocess is that a BLE slave device spends a great deal of time in theconnection setup phase. In general, a BLE device may operate indifferent modes depending on required functionality. The main modes ofoperation include the advertising mode, the scanning mode, centraldevice mode, and peripheral device mode. In advertising mode, the BLEdevice periodically transmits advertising packets and may respond withmore information upon request from other devices. In the scanning mode,a BLE device listens for and receives advertising packets transmitted byother devices and may request additional information from the originatorof an advertising packet. A central device may passively scan oractively scan. A peripheral device can connect to a single central, buta central may connect to multiple peripheral devices simultaneously.

To establish a connection, a first BLE device transmits an advertisingpacket. A second BLE device responds to the advertising packet and mayrequest additional information. If additional information is requested,the first device transmits the requested information. The connection canthen be established with the first device being the peripheral deviceand the second device being the central device. In this disclosure,references to “peripheral device” refer to the BLE device that sends outthe advertising packets, and the “central device” is the BLE device thatreceives and responds to the advertising packets.

FIG. 1 shows two wireless devices 100 and 200. Wireless device 100 is acentral device and wireless device 200 is a peripheral device. As notedabove, to establish a connection between the central device 100 andperipheral device 200, peripheral device 200 transmits an advertisingpacket which, if received by central 100, indicates the presence ofperipheral device 200 to central device 100. Central device 100 mayrespond with a scan request (SCAN_REQ) packet. Peripheral device 200responds to the SCAN_REQ with a scan response (SCAN_RSP) packet toprovide additional data if necessary before establishing the connection.Central device 100 and peripheral device 200 thus engage in informationexchange before establishing a connection. By way of example, centraldevice 100 may be a line powered device or a device with substantialpower reserves, and peripheral device 200 may be a battery powereddevice with limited power reserves. As a specific example, centraldevice 100 may be a locking mechanism of a door that can control accessto a home, and peripheral device 200 may be a portable fob that a usercan use to gain access to the home via central device 100. That is, whena user is within close proximity of the home, peripheral device 200 mayalert its presence to central device 100, which may attempt to connectto device 200. After a connection is made, the user may lock or unlockthe door using the portable fob.

FIG. 2 illustrates a block diagram of peripheral device 200. As shown,device 200 includes control circuitry 220, BLE timing module 222,transceiver 240, antenna 260, and power source 280. Power source 280provides electrical power to circuitry 220, module 222, and transceiver240. Transceiver 240 can accept signals from circuitry 220 to transmitwirelessly via antenna 260. Similarly, wireless signals received byantenna 260 are provided by transceiver 240 to controller 220 forprocessing. Transceiver 240 may be capable of bi-directional datacommunications with another wireless device such as central device 100.Control circuitry 220 may include a processor that executes software.Control circuitry 220 may access BLE timing module 222 to adjust anadvertising frequency according to various embodiments. Controlcircuitry 220 can perform some or all of the functionality describedherein as attributed to peripheral device 200. The architecture depictedin FIG. 2 may be used as well to implement central device 100.

In the BLE protocol, channels 37, 38, and 39 are dedicated for use intransmitting advertising packets and the associated responses. Centraldevice 100 can listen on each advertising channel for an advertisingpacket being transmitted by peripheral device 200. Central device 100can passively listen or actively listen for advertising packets. Duringpassive listening, central device 100 may not transmit scan requestsresponsive to a received advertising packet. During active scanning,however, central device 100 may transmit scan requests responsive to areceived advertising packet.

Peripheral device 200 may transmit advertising packets according to anadvertising frequency. The advertising frequency can characterized ashaving an advertising period. Thus, device 200 can transmit anadvertising packet at the end of each advertising period. Within eachperiod, device 200 can listen for wireless packets during a listenwindow. The listen window may have a start point that coincides with thestart of a period, and an end point that defines the end of the listenwindow. The listen window may be a fixed parameter set, for example, bya Bluetooth Low Energy (BLE) protocol. The listen window may define theonly time during an advertising period during which device 200 canlisten for wireless packets. For example, device 200 may listen for scanrequest packets or connection request packets being transmitted bycentral device 100 during the listen window.

FIG. 3 shows an illustrative timing diagram of wireless communicationsbetween central and peripheral devices, where the central is passivelylistening. An advertisement packet (shown as “advert_n”) is transmittedat an advertising frequency having a period of X. The listen window isshown to exist within each period. In this timing diagram, theperipheral device transmits advert_1 to alert the presence of theperipheral to the central device. After the central receives advert_1,it must wait until it receives advert_2 before it attempts to send, forexample, a connection request packet (shown as “Conn_Req) to theperipheral. The central may have to wait for a subsequent advertisingpacket to be received before attempting to send a packet because of thelimited listen window of the peripheral. That is, the central may haveto immediately transmit a packet after receiving an advertisement packetto ensure the peripheral receives it during its listen window. Thispacket exchange may occur more than once to ensure packets areadequately transmitted and received.

FIG. 4 shows an illustrative timing diagram of wireless communicationsbetween central and peripheral devices, where the central is activelylistening. As with the timing diagram of FIG. 3, the advertising packetsare transmitted according to an advertising frequency having a period ofX. In response to receiving advert_1, the central may immediatelytransmit a scan request packet (shown as “Scan_Reg”) to the peripheralso that it is received during the listen window. The peripheral mayrespond to the scan request packet by transmitting a scan responsepacket (shown as “Scan_Res”). The scan request and scan response packetsmay be handled by a different level of the software stack forimplementing BLE communications than the level that handles advertisingpackets. Thus, the scan response packets may not be constrained by theadvertising frequency. The can request packet may be transmitted by thecentral to request additional information from the peripheral. Thecentral may evaluate the scan response packet received in response toits scan request packet to determine whether it wishes to establish aconnection with the peripheral. If the central decides to establish aconnection, it will wait until it receives another advertisement packetfrom the peripheral and immediately transmit a connection requestpacket. This is illustrated in the timing diagram, where Conn_Req istransmitted in response to receiving Advert_2.

The timing diagrams of both FIGS. 3 and 4 both illustrate that aconnection sequence requires a minimum of two advertising packets inorder to establish a connection. Thus, the advertising frequency isshown to be a limiting factor establishing a connection. The advertisingperiod is X, thus a connection interval can range from X to 2X. The X-2Xinterval may be perceived as too long a time to establish a connection.For example, users may become frustrated with the slow connectionexperience. Peripheral devices may operate at the advertising frequencyhaving the X period to strike an appropriate balance between powerconsumption and connectively. Shorter X periods may provide a fasterconnection interval, but at the expense of increased power consumption.Since peripheral devices typically operate using a relatively limitedpower source, increasing power consumption is not a viable option.

Embodiments herein strive to decrease the connection interval withminimal increase in power consumption by leveraging the scan requestpacket to selectively adjust the advertising frequency to temporarilyoperate at a faster advertising frequency. Assuming that the advertisingfrequency normally operates with a first period, the peripheral devicecan change the advertising frequency to operate with a second period inresponse to a received scan request packet, where the second period isless than the first period, thereby resulting in a faster transmissionof advertising packets. This enables the central device to establish aconnection faster with the peripheral device. The scan request packetcan be used as a trigger for selectively adjusting the advertisingfrequency. This additional use of the scan request packet does notconflict with the provisions of the BLE protocol, but advantageously isadditionally purposed to enable the peripheral device to throttle itsadvertising rate.

FIG. 5 shows an illustrative flowchart of process 500 that may beimplemented by a peripheral device according to an embodiment. FIG. 6shows an illustrative timing diagram of wireless communications betweencentral and peripheral devices, performed according to process 500.FIGS. 5 and 6 will be collectively reference in the followingdiscussion. Starting at step 510, the peripheral device may be operatingin a normal (first) advertising mode, where adverting packets aretransmitted every X period, as indicated by step 520. Advert_1 andAdvert_2 are transmitted while the peripheral device is operating in thenormal advertising mode. The normal advertising mode may represent themode where the peripheral device spends the majority of its operationallife. This is in contrast to a fast (second) advertising mode, discussedbelow, which is a temporary operational mode of the peripheral device.

At step 530, a determination is made as to whether a scan request packetis received. As discussed above, the peripheral may only be capable ofreceiving packets during its listen window, shown as LW in FIG. 6. If noscan request packet is received, process 500 may return to step 510. Forexample, because no scan request packet is received after advert_1 wastransmitted at step 530, process 500 returns to step 510. If a scanrequest packet is received at step 530, process 500 may proceed to step540. For example, a scan request packet is received after transmissionof advert_2. The peripheral device may transmit a scan response packetin response (shown as “Scan_Resp”).

At step 540, the peripheral device may operate in a fast advertisingmode where advertising packets are transmitted every Y period, where Yis less than X. The timing diagram illustrates the change in theadvertising period to period Y. In addition, the timing diagrams showsthat Adverts_3-5 are transmitted when the peripheral device is operatingin the fast advertising mode. At step 550, an advertising packet istransmitted at time Y. For example, Advert_3 is transmitted at time Y asopposed to time X.

At step 560, a determination is made whether the fast advertising modehas timed out. The fast advertising mode may time out after a fixedperiod of time or transmission of a fixed number of advertising packets.If the determination is YES, process 500 may proceed to step 510. If thedetermination is NO, process 500 may proceed to step 570, whichdetermines whether a connection request is received. If thedetermination at step 570 is NO, process 500 may loop back to step 540,otherwise, if YES, process 500 may end at step 580.

Referring to FIG. 6, a connection request packet is transmitted afterAdvert_3 is transmitted. According to process 500, process 500 would endand the standard connection process may ensue. Assume, for example, thatno connection request packet is transmitted. Based on process 500,process 500 may continue to transmit advertising packets at period Yuntil it time outs. After it times out, the peripheral may return tooperating in the normal advertising mode, during which it transmitsadvertisements every X period.

It should be appreciated that the steps of FIG. 5 are merelyillustrative and that additional steps may be added, steps may beomitted, or the steps may be re-ordered. For example, the peripheraldevice may perform additional steps upon receipt of a scan requestpacket. These additional steps are discussed in FIG. 7.

FIG. 7 shows illustrative additional steps may be performed by process500 in response to a determination that a scan request packet isreceived at step 530. At step 531, a determination is made whether theperipheral device is operating in the fast operating mode. If thedetermination at step 531 is YES, process 500 may proceed to step 540,where process 500 continues to operate in the fast operating mode. Ifthe determination is NO, process 500 may proceed to step 532. At step532, the peripheral device may evaluate the received scan packet todetermine whether to enter into the fast advertising mode (step 533).The evaluation criteria can include, for example, verification of asource of the packet and verification of an intention of the source. Forexample, if the source does not have permission to communicate with theperipheral, then the peripheral may not enter into the fast advertisingmode. If the determination at step 533 is NO, process 500 may return tostep 510. If the determination is YES, process may proceed to step 540.

Any processes described with respect to FIGS. 1-7, as well as any otheraspects of the invention, may each be implemented by software, but mayalso be implemented in hardware, firmware, or any combination ofsoftware, hardware, and firmware. They each may also be embodied asmachine- or computer-readable code recorded on a machine- orcomputer-readable medium. The computer-readable medium may be any datastorage device that can store data or instructions that can thereafterbe read by a computer system. Examples of the computer-readable mediummay include, but are not limited to, read-only memory, random-accessmemory, flash memory, CD-ROMs, DVDs, magnetic tape, and optical datastorage devices. The computer-readable medium can also be distributedover network-coupled computer systems so that the computer readable codeis stored and executed in a distributed fashion. For example, thecomputer-readable medium may be communicated from one electronicsubsystem or device to another electronic subsystem or device using anysuitable communications protocol. The computer-readable medium mayembody computer-readable code, instructions, data structures, programmodules, or other data in a modulated data signal, such as a carrierwave or other transport mechanism, and may include any informationdelivery media. A modulated data signal may be a signal that has one ormore of its characteristics set or changed in such a manner as to encodeinformation in the signal.

It is to be understood that any or each module or state machinediscussed herein may be provided as a software construct, firmwareconstruct, one or more hardware components, or a combination thereof.For example, any one or more of the state machines or modules may bedescribed in the general context of computer-executable instructions,such as program modules, that may be executed by one or more computersor other devices. Generally, a program module may include one or moreroutines, programs, objects, components, and/or data structures that mayperform one or more particular tasks or that may implement one or moreparticular abstract data types. It is also to be understood that thenumber, configuration, functionality, and interconnection of the modulesor state machines are merely illustrative, and that the number,configuration, functionality, and interconnection of existing modulesmay be modified or omitted, additional modules may be added, and theinterconnection of certain modules may be altered.

Whereas many alterations and modifications of the present invention willno doubt become apparent to a person of ordinary skill in the art afterhaving read the foregoing description, it is to be understood that theparticular embodiments shown and described by way of illustration are inno way intended to be considered limiting. Therefore, reference to thedetails of the preferred embodiments is not intended to limit theirscope.

1.-20. (canceled)
 21. A method, comprising: operating a device accordingto a first mode that transmits a first type of packets according to afirst frequency, the first frequency comprising a first periodcharacterized by a start time and a first end time; receiving a secondtype of packet in response to the transmission of one of the first typeof packets; and temporarily operating the device according to a secondmode in response to the received second type of packet, wherein in thesecond mode the first type of packets are transmitted according to asecond frequency that is greater than the first frequency to reducelatency in establishing a connection between the device and anotherdevice that transmitted the second type of packet, the second frequencycomprising a second period characterized by the same start time as thefirst period and a second end time, wherein the second end time is lessthan the first end time.
 22. The method of claim 21, wherein the deviceis a peripheral device that wirelessly communicates according to aBlueTooth Low Energy (BLE) protocol.
 23. The method of claim 21, furthercomprising: receiving a third type of packet in response to a first typeof packet transmitted when the device is operating in the second mode.24. The method of claim 21, further comprising: determining whether thesecond mode has timed out; and in response a determination that thesecond mode has timed out, ceasing to operate the device in the secondmode; and returning to operating the device in the first mode.
 25. Themethod of claim 21, further comprising: evaluating the received scanrequest packet to determine whether the device is permitted to enterinto the second mode.
 26. An apparatus, comprising: a wirelesstransceiver, wherein the wireless transceiver is operative to receive afirst type of packet; and control circuitry coupled to the wirelesstransceiver and operative to cause the wireless transceiver to send andreceive wireless packets, the control circuitry operative to: transmit asecond type of packets at a transmission frequency having a firstperiod; receive a first type of packet within a listening window;evaluate the received first type of packet; determine whether theevaluated first type of packet meets predetermined criteria; adjust thetransmission frequency to have a second period in response to adetermination that the predetermined criteria are met, wherein thesecond period is less than the first period; and transmit at least onesubsequent packet of the second type at the transmission frequencyhaving the second period.
 27. The apparatus of claim 26, wherein thesecond period is selected based on a processing speed of a centralsystem transmitting the first type of packet.
 28. The apparatus of claim26, wherein the control circuitry is operative to instruct the wirelesstransceiver to transmit a third type of packet in response to adetermination that a first type of packet is monitored.
 29. Theapparatus of claim 26, wherein the control circuitry is operative toinstruct the wireless transceiver to transmit the second type of packetsat the transmission frequency having the second period until a fasttransmission mode times out.
 30. The apparatus of claim 26, wherein thepredetermined criteria comprises verification of a source, verificationof an intention of the source, and whether the apparatus is alreadytransmitting the first type of packets at the transmission frequencyhaving the second period.
 31. The apparatus of claim 26, wherein thecontrol circuitry is operative to instruct the wireless transceiver totransmit the second type of packets at the transmission frequency havingthe second period until a fourth type of packet is received.
 32. Theapparatus of claim 26, wherein the wireless transceiver is operative toreceive a fourth type of packet in response to an first type of packettransmitted according the transmission frequency having the secondperiod.
 33. The apparatus of claim 26, wherein the control circuitryimplements a BlueTooth Low Energy (BLE) protocol.
 34. A method forestablishing low latency connection between central and peripheraldevices, the method implemented by the peripheral device, comprising:wirelessly transmitting a first type of packets to alert the presence ofthe peripheral device to the central device; and adjusting atransmission rate for transmitting the first type of packets based onwhether a second type of packet is received in response to a transmittedfirst type of packet, wherein the transmission rate is temporarilyaccelerated in response to a received second type of packet to reducelatency in establishing a connection between the central and peripheraldevices; and prior to receiving the second type of packet, wirelesslytransmitting the first type of packets according to a first transmissionrate, the first transmission rate comprising a first periodcharacterized by a start time and a first end time; and after receivingthe second type of packet, wirelessly transmitting the first type ofpacket according to a second transmission rate, the second transmissionrate comprising a second period characterized by the same start time asthe first period and a second end time, wherein the second end time isless than the first end time.
 35. The method of claim 34, furthercomprising: wirelessly transmitting the first type of packets at theaccelerated transmission rate.
 36. The method of claim 34, furthercomprising wirelessly transmitting an first type of packet substantiallyimmediately after the second end time.
 37. The method of claim 36,further comprising receiving a third type of packet in response to thefirst type of packet transmitted substantially immediately after thesecond end time.